﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="NewLogin.aspx.cs" Inherits="Contents_NewLogin" EnableTheming="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellpadding="5px" style="width: 100%">
        <tr>
            <td valign="top">
                <asp:HiddenField ID="myHiddenUserName" runat="server" />
                <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE"
                    BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"
                    OnContinueButtonClick="CreateUserWizard1_ContinueButtonClick" OnCreatedUser="CreateUserWizard1_CreatedUser"
                    OnCreatingUser="CreateUserWizard1_CreatingUser" OnCreateUserError="CreateUserWizard1_CreateUserError"
                    OnFinishButtonClick="CreateUserWizard1_FinishButtonClick" OnNextButtonClick="CreateUserWizard1_NextButtonClick"
                    DisableCreatedUser="True" DisplayCancelButton="True" DisplaySideBar="True">
                    <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" />
                    <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
                    <FinishNavigationTemplate>
                        <asp:Button ID="FinishPreviousButton" runat="server" BackColor="White" BorderColor="#507CD1"
                            BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="MovePrevious"
                            Font-Names="Verdana" ForeColor="#284E98" Text="Precedente" />
                        <asp:Button ID="FinishButton" runat="server" BackColor="White" BorderColor="#507CD1"
                            BorderStyle="Solid" BorderWidth="1px" CommandName="MoveComplete" Font-Names="Verdana"
                            ForeColor="#284E98" Text="Fine" />
                    </FinishNavigationTemplate>
                    <ContinueButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284E98" />
                    <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284E98" />
                    <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
                        Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
                    <CreateUserButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284E98" />
                    <TitleTextStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <StepStyle Font-Size="0.8em" />
                    <WizardSteps>
                        <asp:CreateUserWizardStep runat="server">
                            <ContentTemplate>
                                <table border="0" style="font-family: Verdana; font-size: 100%;">
                                    <tr>
                                        <td align="center" colspan="2" style="color: White; background-color: #507CD1; font-weight: bold;">
                                            Nuovo account
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Nome utente:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                ErrorMessage="Il nome utente è obbligatorio." ToolTip="Il nome utente è obbligatorio."
                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                ErrorMessage="La password è obbligatoria." ToolTip="La password è obbligatoria."
                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Conferma password:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                                ErrorMessage="La password di conferma è obbligatoria." ToolTip="La password di conferma è obbligatoria."
                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Posta elettronica:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                                ErrorMessage="Il valore Posta elettronica è obbligatorio." ToolTip="Il valore Posta elettronica è obbligatorio."
                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                                ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="La password e la password di conferma devono corrispondere."
                                                ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="color: Red;">
                                            <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:CreateUserWizardStep>
                        <asp:WizardStep runat="server" StepType="Step" Title="Dati ditta">
                            <br />
                            <table>
                                <%--***--%>
                                <tr>
                                    <td>
                                        Rag. Sociale / Nome Cognome
                                    </td>
                                    <td>
                                        <asp:TextBox ID="myTxtRagSoc" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <%--***--%>
                                <tr>
                                    <td>
                                        P. Iva / Cod. Fiscale
                                    </td>
                                    <td>
                                        <asp:TextBox ID="myTxtPIVA" runat="server"></asp:TextBox>
                                            <ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server" TargetControlID="myTxtPIVA"
                                                FilterType="LowercaseLetters,UppercaseLetters,Numbers" />
                                    </td>
                                </tr>
                                <%--***--%>
                                <tr>
                                    <td>
                                        Tipo ditta
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="myRbTipoDitta" runat="server">
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <%--***--%>
                                <tr>
                                    <td>
                                        Stato
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="myDropStatoLegale" runat="server" AppendDataBoundItems="true">
                                        <asp:ListItem Selected="True" Text="Seleziona" Value="0"></asp:ListItem> 
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <%--***--%>
                                <tr>
                                    <td>
                                        Città
                                    </td>
                                    <td>
                                        <asp:TextBox ID="myTxtCittà" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="myTxtCittà"
                                            Display="Dynamic" ErrorMessage="&lt;b&gt; &lt;&lt;&lt;-- &lt;/b&gt;" InitialValue=" "></asp:RequiredFieldValidator>
                                        <ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" TargetControlID="myTxtCittà"
                                            FilterType="LowercaseLetters,UppercaseLetters,Custom" FilterMode="ValidChars"
                                            ValidChars=" " />
                                    </td>
                                </tr>
                                <%--***--%>
                                <tr>
                                    <td>
                                        Indirizzo
                                    </td>
                                    <td>
                                        <asp:TextBox ID="myTxtIndirizzo" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="myTxtIndirizzo"
                                            Display="Dynamic" ErrorMessage="&lt;b&gt; &lt;&lt;&lt;-- &lt;/b&gt;" InitialValue=" "></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <br />
                                        Ho letto ed accetto i termini contrattuali quì esposti :
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Contents/Condizioni.aspx.cs">Termini</asp:HyperLink>
                                        <br />
                                    </td>
                                  </tr>
                                  <tr>  
                                    <td colspan="2">
                                        Informativa [ai sensi dell'art.13 del D.Lgs. 196/2003]<br />
                                        <asp:CheckBox ID="myCheckConsensoLegge" runat="server" BackColor="#FFFF99" />
                                        Consenso art.13 del D.Lgs. 196/2003 al trattamento dei dati personali
                                        <br />
                                        per le finalità e con le modalità specificatamente indicate nell'informativa.
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:CompleteWizardStep runat="server">
                            <ContentTemplate>
                                <table border="0" style="font-family: Verdana; font-size: 100%;">
                                    <tr>
                                        <td align="center" colspan="2" style="color: White; background-color: #507CD1; font-weight: bold;">
                                            Completo
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span style="color: #0066FF"><b>
                                                <br />
                                                Creazione dell&#39;account completata.<br />
                                                Ora sei registrato.</b></span><br />
                                            <br />
                                            Per abilitarti segui le istruzioni nell&#39;email
                                            <br />
                                            che ti arriverà tra qualche minuto.<br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2">
                                            <asp:Button ID="ContinueButton" runat="server" BackColor="White" BorderColor="#507CD1"
                                                BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="Continue"
                                                Font-Names="Verdana" ForeColor="#284E98" Text="Continua" ValidationGroup="CreateUserWizard1" />
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:CompleteWizardStep>
                    </WizardSteps>
                </asp:CreateUserWizard>
            </td>
        </tr>
    </table>
    <asp:Literal ID="myLiteralMsg" runat="server"></asp:Literal>
</asp:Content>
